<?php
if (!function_exists('routes')) {
    function routes(array $routes)
    {
        foreach ($routes as $route) {
            $res[$route] = route($route);
        }
        return $res ?? [];
    }
}